package gettersSetters;

public class Bike {

	private int sizeOfBike;
	private String brand;
	private String color;
	private String productOf;
	private boolean hasGear;

	// string brand is passed thru constructor and set method of the brand can be removed.
	// boolean hasGear can be passed as constructor argument 

	public Bike(String brand, boolean hasGear){
		this.brand = brand;
		this.hasGear = hasGear;
	}
	public int getSizeOfBike() {
		return sizeOfBike;
	}
	public void setSizeOfBike(int sizeOfBike) {
		this.sizeOfBike = sizeOfBike;
	}

	public String getBrand() {
		return brand;
	}
	
	public String getColor() {
		return color;
	}
	public void setColor(String color) {
		this.color = "Blue";
	}

	public String getProductOf() {
		return productOf;
	}
	public void setProductOf(String productOf) {
		productOf = "China";
		this.productOf = productOf;
	}

	public boolean isHasGear() {
		return hasGear;
	}
		
	} // end of class


